﻿@using ESoft.Portal.Data.Domain.Entity
@model List<CContentArticleEntity>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>无度乱弹</title>
    <meta name="keyword"  content=".NET CORE 开发日志，项目管理PMP"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="@Url.Content("~/plugins/layui/css/layui.css")" media="all" />
    <link rel="stylesheet" href="/static/css/mian.css">
</head>
<body class="lay-blog">
    <div class="header">
        <div class="header-wrap">
            <h1 class=" pull-left">
                无度的天空
            </h1>
            
            <div class="blog-nav pull-right">
                <ul class="layui-nav pull-left">
                    <li class="layui-nav-item layui-this"><a href="/">首页</a></li>
                    @foreach (CContentChannelEntity channel in (List<CContentChannelEntity>) ViewBag.channelList)
                    {
                        <li class="layui-nav-item"><a href="?channelId=@channel.ChannelId">@channel.ChannelName</a></li>
                    }
                </ul>
            </div>
            <div class="mobile-nav pull-right" id="mobile-nav">
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more"></i>
                </a>
            </div>
        </div>
        <ul class="pop-nav" id="pop-nav">
            <li><a href="/">首页</a></li>
            @foreach (CContentChannelEntity channel in (List<CContentChannelEntity>) ViewBag.channelList)
            {
                <li><a href="/@channel.ChannelId">@channel.ChannelName</a></li>
            }
        </ul>
    </div>
    <div class="container-wrap">
        <div class="container">
            <div class="contar-wrap">
                <div class="item">
                    @foreach (var articel in Model)
                    {
                        <div class="item-box  layer-photos-demo1 layer-photos-demo">
                            <h3>
                                @articel.Title

                            @if (articel.Channel != null)
                            {
                                <span class="layui-badge layui-bg-green layui-hide-xs">
                                    @(articel.Channel.ChannelName)
                                </span>
                            }
                        </h3>
                        <h5>发布于：<span>@articel.CreateDatetime?.ToString("yyyy-M-d HH:mm")</span></h5>
                            <hr />
                    </div>
                }
                </div>
            </div>
        </div>
    </div>
    <div class="footer">
        <p>
            <span>粤ICP备15059645号-2  无度乱弹</span>
            <span></span>
            <span></span>
        </p>
        <p><span>人生就是一场修行</span></p>
    </div>
    <script type="text/javascript" src="/plugins/layui/layui.js"></script>
    <script>
        layui.config({
            base: '/js/' //你存放新模块的目录，注意，不是layui的模块目录
        }).use('blog');
    </script>
    <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?fee64bb8318658991291f6537103e420";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
    </script>

</body>
</html>